package com.cq.hd.member.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 商家积分商城设置表
 * </p>
 *
 * @author mYunYu
 * @since 2023-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_business_points_mall_settings")
@ApiModel(value = "TbBusinessPointsMallSettingsPo对象", description = "商家表")
public class TbBusinessPointsMallSettingsPo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商家id")
    @TableField("business_id")
    private Long businessId;

    @ApiModelProperty(value = "每消费1元，奖励x积分")
    @TableField("consume")
    private BigDecimal consume;

    @ApiModelProperty(value = "首次订阅，奖励x积分")
    @TableField("first_subscription")
    private BigDecimal firstSubscription;

    @ApiModelProperty(value = "分销活动，每获得1元佣金，奖励x积分")
    @TableField("distribution")
    private BigDecimal distribution;

    @ApiModelProperty(value = "转发活动，奖励x积分")
    @TableField("share_active")
    private BigDecimal shareActive;

    @ApiModelProperty(value = "每天转发活动获得积分次数上限")
    @TableField("share_daily_limit")
    private Integer shareDailyLimit;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;
}
